home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-13 | 11.5 KB | 435 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SemtIntB.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODSemanticInterface_xh
- #define SOM_ODSemanticInterface_xh
-
- class ODSemanticInterface;
-
- #define ODSemanticInterface_MajorVersion 1
- #define ODSemanticInterface_MinorVersion 0
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODExtension_xh
- #include <Extensn.xh>
- #endif
-
- #ifndef ODSemanticInterface_API
- #define ODSemanticInterface_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODRefCntObject;
- class ODSemanticInterface;
- class ODSession;
- class ODPart;
- class ODDesc;
- class ODAppleEvent;
- class ODOSLToken;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define ODSemanticInterfaceCClassData ODSemanticInterfaceClassData
- #define ODSemanticInterfaceNewClass(major,minor) somNewVersionedClassReference(ODSemanticInterface,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define ODSemanticInterfaceMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the ODSemanticInterface class object, and the methods it introduces. */
- SOMEXTERN struct ODSemanticInterfaceClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken InitSemanticInterface;
- somMToken CallEventHandler;
- somMToken CallCoercionHandler;
- somMToken CallObjectAccessor;
- somMToken CallCompareProc;
- somMToken CallCountProc;
- somMToken CallDisposeTokenProc;
- somMToken CallGetErrDescProc;
- somMToken CallGetMarkTokenProc;
- somMToken CallMarkProc;
- somMToken CallAdjustMarksProc;
- somMToken GetOSLSupportFlags;
- somMToken SetOSLSupportFlags;
- somMToken CallPredispatchProc;
- somMToken UsingPredispatchProc;
- } SOMDLINK ODSemanticInterfaceClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(ODSemanticInterface_Class_Source) && !defined(SOM_Module_semtintb_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list ODSemanticInterfaceClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for ODSemanticInterface Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_ODSemanticInterface_InitSemanticInterface)(ODSemanticInterface *somSelf, Environment *ev,
- ODPart* base,
- ODSession* session);
- typedef void (* SOMLINK somTD_ODSemanticInterface_CallEventHandler)(ODSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODAppleEvent* theODAppleEvent,
- ODAppleEvent* reply);
- typedef void (* SOMLINK somTD_ODSemanticInterface_CallCoercionHandler)(ODSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODDesc* theODDesc,
- ODDescType toType,
- ODDesc* theResult);
- typedef void (* SOMLINK somTD_ODSemanticInterface_CallPredispatchProc)(ODSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODAppleEvent* theODAppleEvent,
- ODAppleEvent* reply);
- typedef void (* SOMLINK somTD_ODSemanticInterface_CallObjectAccessor)(ODSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODDescType desiredClass,
- ODOSLToken* container,
- ODDescType containerClass,
- ODDescType form,
- ODDesc* selectionData,
- ODOSLToken* value);
- typedef void (* SOMLINK somTD_ODSemanticInterface_CallCompareProc)(ODSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODDescType oper,
- ODOSLToken* obj1,
- ODOSLToken* obj2,
- ODBoolean* result);
- typedef void (* SOMLINK somTD_ODSemanticInterface_CallCountProc)(ODSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODDescType desiredType,
- ODDescType containerClass,
- ODOSLToken* container,
- ODSLong* result);
- typedef void (* SOMLINK somTD_ODSemanticInterface_CallDisposeTokenProc)(ODSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODOSLToken* unneededToken);
- typedef void (* SOMLINK somTD_ODSemanticInterface_CallGetErrDescProc)(ODSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODDesc** errDesc);
- typedef void (* SOMLINK somTD_ODSemanticInterface_CallGetMarkTokenProc)(ODSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODOSLToken* dContainerToken,
- ODDescType containerClass,
- ODOSLToken* result);
- typedef void (* SOMLINK somTD_ODSemanticInterface_CallMarkProc)(ODSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODOSLToken* dToken,
- ODOSLToken* markToken,
- ODSLong index);
- typedef void (* SOMLINK somTD_ODSemanticInterface_CallAdjustMarksProc)(ODSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODSLong newStart,
- ODSLong newStop,
- ODOSLToken* markToken);
- typedef ODSShort (* SOMLINK somTD_ODSemanticInterface_GetOSLSupportFlags)(ODSemanticInterface *somSelf, Environment *ev);
- typedef void (* SOMLINK somTD_ODSemanticInterface_SetOSLSupportFlags)(ODSemanticInterface *somSelf, Environment *ev,
- ODSShort flags);
- typedef void (* SOMLINK somTD_ODSemanticInterface_UsingPredispatchProc)(ODSemanticInterface *somSelf, Environment *ev,
- ODBoolean usingNotUsing);
- }
-
- #endif /* ODSemanticInterface_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODSemanticInterface
- */
- class ODSemanticInterface : public ODExtension
- {
- public:
-
- // ODSemanticInterface::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for ODSemanticInterface, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(ODSemanticInterface);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(ODSemanticInterface);
- #endif
- }
-
- // ODSemanticInterface::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: InitSemanticInterface */
- void InitSemanticInterface(Environment *ev,
- ODPart* base,
- ODSession* session)
- {
- SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,InitSemanticInterface)
- (this,ev,base,session);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: CallEventHandler */
- void CallEventHandler(Environment *ev,
- ODPart* thePart,
- ODAppleEvent* theODAppleEvent,
- ODAppleEvent* reply)
- {
- SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,CallEventHandler)
- (this,ev,thePart,theODAppleEvent,reply);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: CallCoercionHandler */
- void CallCoercionHandler(Environment *ev,
- ODPart* thePart,
- ODDesc* theODDesc,
- ODDescType toType,
- ODDesc* theResult)
- {
- SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,CallCoercionHandler)
- (this,ev,thePart,theODDesc,toType,theResult);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: CallPredispatchProc */
- void CallPredispatchProc(Environment *ev,
- ODPart* thePart,
- ODAppleEvent* theODAppleEvent,
- ODAppleEvent* reply)
- {
- SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,CallPredispatchProc)
- (this,ev,thePart,theODAppleEvent,reply);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: CallObjectAccessor */
- void CallObjectAccessor(Environment *ev,
- ODPart* thePart,
- ODDescType desiredClass,
- ODOSLToken* container,
- ODDescType containerClass,
- ODDescType form,
- ODDesc* selectionData,
- ODOSLToken* value)
- {
- SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,CallObjectAccessor)
- (this,ev,thePart,desiredClass,container,containerClass,form,selectionData,value);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: CallCompareProc */
- void CallCompareProc(Environment *ev,
- ODPart* thePart,
- ODDescType oper,
- ODOSLToken* obj1,
- ODOSLToken* obj2,
- ODBoolean* result)
- {
- SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,CallCompareProc)
- (this,ev,thePart,oper,obj1,obj2,result);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: CallCountProc */
- void CallCountProc(Environment *ev,
- ODPart* thePart,
- ODDescType desiredType,
- ODDescType containerClass,
- ODOSLToken* container,
- ODSLong* result)
- {
- SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,CallCountProc)
- (this,ev,thePart,desiredType,containerClass,container,result);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: CallDisposeTokenProc */
- void CallDisposeTokenProc(Environment *ev,
- ODPart* thePart,
- ODOSLToken* unneededToken)
- {
- SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,CallDisposeTokenProc)
- (this,ev,thePart,unneededToken);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: CallGetErrDescProc */
- void CallGetErrDescProc(Environment *ev,
- ODPart* thePart,
- ODDesc** errDesc)
- {
- SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,CallGetErrDescProc)
- (this,ev,thePart,errDesc);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: CallGetMarkTokenProc */
- void CallGetMarkTokenProc(Environment *ev,
- ODPart* thePart,
- ODOSLToken* dContainerToken,
- ODDescType containerClass,
- ODOSLToken* result)
- {
- SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,CallGetMarkTokenProc)
- (this,ev,thePart,dContainerToken,containerClass,result);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: CallMarkProc */
- void CallMarkProc(Environment *ev,
- ODPart* thePart,
- ODOSLToken* dToken,
- ODOSLToken* markToken,
- ODSLong index)
- {
- SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,CallMarkProc)
- (this,ev,thePart,dToken,markToken,index);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: CallAdjustMarksProc */
- void CallAdjustMarksProc(Environment *ev,
- ODPart* thePart,
- ODSLong newStart,
- ODSLong newStop,
- ODOSLToken* markToken)
- {
- SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,CallAdjustMarksProc)
- (this,ev,thePart,newStart,newStop,markToken);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: GetOSLSupportFlags */
- ODSShort GetOSLSupportFlags(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- ODSShort __somResult =
- SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,GetOSLSupportFlags)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,GetOSLSupportFlags)
- (this,ev);
- #endif
- }
-
- /* method: SetOSLSupportFlags */
- void SetOSLSupportFlags(Environment *ev,
- ODSShort flags)
- {
- SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,SetOSLSupportFlags)
- (this,ev,flags);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: UsingPredispatchProc */
- void UsingPredispatchProc(Environment *ev,
- ODBoolean usingNotUsing)
- {
- SOM_ResolveD(this,ODSemanticInterface,ODSemanticInterface,UsingPredispatchProc)
- (this,ev,usingNotUsing);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- }; /* ODSemanticInterface */
-
-
-
- #endif /* SOM_ODSemanticInterface_xh */
-